Array.prototype.sequentialSearch = function (item) {
	for (let i = 0; i < this.length; i++) {
		if (this[i] === item) {
			return i
		}
	}
	return -1
}

const arr = [5, 4, 3, 2, 1]
console.log(arr.sequentialSearch(0))
